const CommonRouter = [
  {
    path: "/common",
    component: () => import('@/layout/index.vue'),
    name: "Common",
    redirect: "/common/clipboard",
    meta: {
      title: "常用组件",
      roles: ["super"],
    },
    children: [
      {
        path: "clipboard",
        component: () => import("@/views/common/clipboard.vue"),
        name: "clipboard",
        meta: {
          title: "剪贴板",
        },
      },
      {
        path: "editor",
        component: () => import("@/views/common/editor.vue"),
        name: "editor",
        meta: {
          title: "富文本编辑器",
        },
      },
      {
        path: "drag",
        component: () => import("@/views/common/drag.vue"),
        name: "drag",
        meta: {
          title: "卡片拖拽",
        },
      },
      {
        path: "cropper",
        component: () => import("@/views/common/cropper.vue"),
        name: "cropper",
        meta: {
          title: "头像裁剪",
        },
      },
      {
        path: "svgIcon",
        component: () => import("@/views/common/svgIcon.vue"),
        name: "svgIcon",
        meta: {
          title: "svg图标",
        },
      },
      {
        path: "waterMarker",
        component: () => import("@/views/common/waterMarker.vue"),
        name: "waterMarker",
        meta: {
          title: "生成水印",
        },
      },
      {
        path: "qrcode",
        component: () => import("@/views/common/qrcode.vue"),
        name: "qrcode",
        meta: {
          title: "生成二维码",
        },
      },
      {
        path: "rightMenu",
        component: () => import("@/views/common/rightMenu.vue"),
        name: "rightMenu",
        meta: {
          title: "右键菜单",
        },
      },
      {
        path: "count",
        component: () => import("@/views/common/count.vue"),
        name: "count",
        meta: {
          title: "数字动画",
        },
      },
      {
        path: "markDown",
        component: () => import("@/views/common/markDown.vue"),
        name: "markDown",
        meta: {
          title: "MarkDown",
        },
      },
    ],
  },
];
export default CommonRouter;
